function modAnalysisMain(inDir)

%inDir='/Users/matthew/workspace/mfiles/projects/data/';
%inFile='pliXsubjs_alpha';

filter='pliXsubjs_*';
files=dir(fullfile(inDir,filter));

density=0.05:0.05:0.30;
%density=[0.15 0.20];
nSurrogates=10;


for i=1:length(files)
    inFile=files(i).name;
    load(fullfile(inDir,inFile));
    [s,outFile]=strtok(inFile,'_');
    outFile=strcat('densityTrend',outFile)
    normMod(cond_one,cond_two,density,nSurrogates,outFile)
end